home *** CD-ROM | disk | FTP | other *** search
- echo off
- . _what.bat revised 19-aug-83 17:41
- more <_what.rem
- pause
- :example
- slash/ll/I'm going to count your physical diskette drives using WHAT FLOPPIES.
- slash/l /Note that "legitimate" IBM hard disks won't be in this count, nor
- slash/ /will virtual drives that are "patched" into DOS. You would
- slash/ /use the WHAT DRIVES command to count diskette drives, hard disks,etc.
- slash/l / Wait a moment ...
- what floppies
- if errorlevel 4 goto 4disks
- if errorlevel 3 goto 3disks
- if errorlevel 2 goto 2disks
- if errorlevel 1 goto 1disks
- slash/l/No floppies??? You're either patched or pulling my leg!
- goto continue
- :1disks
- slash/1/One floppy. Hmm. Either one of the last of a dying breed,
- slash/ /or perhaps there is a hard disk next door ...
- goto continue
- :2disks
- slash/l/Two floppies are the mark of a mainstream user.
- slash/l/Have you considered a RAM disk? Think about it ...
- slash/l/(Don't type y/n. You're probably answering EVERYTHING
- slash/ / y/n by now ! )
- goto continue
- :3disks
- slash/l/Three floppies! Is one a RAM disk, or (gasp!) a winnie?
- slash/l/(Don't type y/n. You're probably answering EVERYTHING
- slash/ / y/n by now ! )
- goto continue
- :4disks
- slash/l/Four floppies!! A heavy duty user, for sure. Or else
- slash/l/you're just fooling with the switches ...
- :continue
- query/lll/ Want to run this example again (y/n) ?
- if errorlevel 2 goto exit
- if errorlevel 1 goto example
- _find
- :exit
- slash/lll/ Bye bye
- We can also use echo subcommand for comments, but with echo "on" it
- echo can certainly get confusing
- echo confusing .